/**
 *
 *      ___                       ___
 *     /\  \          ___        /\  \
 *    /::\  \        /\  \      /::\  \
 *   /:/\:\  \       \:\  \    /:/\ \  \
 *  /:/  \:\  \      /::\__\  _\:\~\ \  \
 * /:/__/ \:\__\  __/:/\/__/ /\ \:\ \ \__\
 * \:\  \  \/__/ /\/:/  /    \:\ \:\ \/__/
 *  \:\  \       \::/__/      \:\ \:\__\
 *   \:\  \       \:\__\       \:\/:/  /
 *    \:\__\       \/__/        \::/  /
 *     \/__/                     \/__/
 *
 * CIS - Clang Indexing Service is a Project Manager & Source code indexing service
 * created so as to simplify the indexing of C/C++ based source code which use
 * standardized build mechanisms.
 *
 **/

#ifndef REQUEST_HXX
#define	REQUEST_HXX

#include <string>
#include <vector>
#include <Poco/Dynamic/Var.h>
#include <Poco/HashMap.h>
#include <Poco/Util/OptionSet.h>

namespace cis {

class Request {
protected:
    Poco::HashMap<std::string, std::string> optionValueMap;
    std::vector<std::string> splitOptions(const std::string& params);
    void processOptions(const std::string&);
    virtual const Poco::Util::OptionSet& getOptions() = 0;
public:
    Request();
    virtual std::string execute(const std::string&) = 0;
};

class CreateProjectRequest : public Request {
public:
    virtual const Poco::Util::OptionSet& getOptions();

    CreateProjectRequest();

    virtual std::string execute(const std::string&);
};

}

#endif	/* REQUEST_HXX */

